﻿<script type="text/javascript">
//FormEdit.debug = true;
FormEdit.formName = "form1";
FormEdit.postUrl = "./admin_vote.asp";
FormEdit.dateVal = "action=add";
if (typeof(tabFormID[currentTab]) != "undefined")
{
	FormEdit.dateVal += "&ID=" + tabFormID[currentTab];
	
	objForm.doResponseMethod = getEditPostResult;
	editSuccessUrl = './templates/admin_vote_list.htm';

	setTabTitle(currentTab, tabTitle[42]);
}
else{
	objForm.doResponseMethod = getAddPostResult;

	setTabTitle(currentTab, tabTitle[41]);
}
FormEdit.doResponseMethodOther = "sw_help_topic_init()";

//objForm.debug = true;
objForm.postUrl = "./admin_vote.asp";

function initTabContent(){
	FormEdit.start();
}
</script>
<form id="form1" name="form1" method="get" onsubmit="return false;">

<input type="hidden" name="">
<input type="hidden" name="ID">
<input type="hidden" name="action" value="save">

<div class="mainWindows">
	<div>
		<fieldset><legend><span id="help_topic_icon" onclick="sw_help_topic();"><span id="Language_OperationNotice"></span></span></legend>
        <div id="help_topic"><span id="Language_Vote_Help"></span></div>
        </fieldset>
	</div>

	<div style="margin-top: 5px;">
		<fieldset>
			<legend id="Language_Vote_Input_Vote"></legend>
				<table width="100%" class="edittable">
					<tr>
					  <td width="15%" align="right"><span id="Language_Vote_Title"></span></td>
					  <td align="left">&nbsp;<textarea name="Title" cols="40" wrap="VIRTUAL" dataType="Require"></textarea></td>
					</tr>
					<tr>
					  <td align="right" valign="top"><span id="Language_Vote_Content"></span></td>
					  <td align="left">&nbsp;<textarea name="VoteText" id="VoteText" wrap="VIRTUAL" rows="8" cols="40" dataType="Require"></textarea>
						<br>&nbsp;<a href="javascript:vod();" onclick="javascript:change($('VoteText'),-20)"><img src="images/minus.gif" border=0></a>&nbsp;&nbsp;<a href="javascript:vod();" onclick="javascript:change($('VoteText'),20)"><img src="images/plus.gif" border=0></a></td>
					</tr>
					<tr>
					  <td align="right"><span id="Language_Vote_Type"></span></td>
					  <td align="left">&nbsp;<input type="radio" name="Typer" value="0"><span id="Language_Vote_Type_Radio"></span>&nbsp;<input type="radio" name="Typer" value="1" dataType="Group"><span id="Language_Vote_Type_Check"></span></td>
					</tr>
					<tr bgcolor="#efefef">
					  <td align="left" colspan="2" height="22">&nbsp;<input type="button" name="btnSubmit" id="btnSubmit" onclick="javascript:return objForm.ajaxPost();">&nbsp;<input type="button" name="btnReturn" id="btnReturn" onclick="javascript:ajaxChangeRightContent('./templates/admin_vote_list.htm','pageContent');"></td>
					</tr>
				</table>
		</fieldset>
	</div>
</div>

</form>